import React from 'react';
import './index.less';
import PropTypes from 'prop-types';
import CommonHeader from 'COMPONENT/CommonHeader';
import LoanResultPage from 'COMPONENT/LoanResultPage';

export default class HmdMain extends React.Component {
    static contextTypes = {
        router: PropTypes.object.isRequired
    }
    constructor(props) {
        super(props);
        
        
        
        this.state = {
          
        }
    }

    componentWillMount() {
        
        

    }
	
	rightAction =()=> {
		this.context.router.push({
			pathname: '/Home'
		})
	}
	
    render() {
        
       
        return(
            <div>

				<CommonHeader 
					name='信用贷申请确认'
					leftContentTitle="@back" 
					leftContent='返回'
					rightContentTitle="@index"
					rightAction={this.rightAction.bind(this)}
				/>
				<div style={{height:'.9rem'}}></div>
               
                <LoanResultPage
                    icon = "check-circle-o"
                    title = "提交成功"
                    content = "   恭喜您,已成功提取贷款!贷款发放至您交通银行借记卡(*****4545).本次贷款金额3,234.00元,期限24个月.首期还款金额324.00元,首期还款日11月1日。"
			

                    btns = {
                    	[
	                    	{'title':'借款凭证','path':'/HmdMain/LoanVoucher'},
	                    	{'title':'还款计划','path':'/HmdMain/RepaymentSchedule'}
                    	]
                	}
                />
                
            </div>
        );
    }
}